package spring.in.action.chapter_03.express;

import org.springframework.stereotype.Component;

@Component
public class BankDisc
{
    private String title;

    private String artist;

    public BankDisc(String pTitle, String pArtist)
    {
        this.title = pTitle;
        this.artist = pArtist;
    }

    public void play()
    {
        System.out.println("播放 " + artist + "的 " + title);
    }
}
